#!/usr/bin/gnuplot

#set terminal postV.eps 24
set terminal post eps color 24

# read bytes filled curve (KB) 
set output "rbcomp.eps"
set xlabel "machine ID"
set ylabel "read bytes (KB/s)"

plot "average.dat" using 1:2 with histeps title "job4061", "" u 1:7 with histeps title "host"


# write bytes fillcurve (MB) 
set output "wbcomp.eps"
set xlabel "machine ID"
set ylabel "write bytes (KB/s)"
set yrange [0:32000]

plot "average.dat" using 1:($3-10000) with histeps title "job4061" , "" u 1:8 with histeps title "host"


# read bytes (KB) 
set output "rbV.eps"
set xlabel "machine ID"
set ylabel "read bytes (KB/s)"

plot "average.dat" using 1:2 with impulses notitle linewidth 10


# write bytes (MB) 
set output "wbV.eps"
set xlabel "machine ID"
set ylabel "write bytes (KB/s)"

plot "average.dat" using 1:3 with impulses notitle linewidth 10

# total virtual mem (MB) 
set output "wmV.eps"
set xlabel "machine ID"
set ylabel "virtual mem (MB)"

plot "average.dat" using 1:4 with impulses notitle linewidth 10


# mem (MB)
set output "mV.eps"
set xlabel "machine ID"
set ylabel "real mem (MB)"

plot "average.dat" using 1:5 with impulses notitle linewidth 10


# cpu 
set output "cpuV.eps"
set xlabel "machine ID"
set ylabel "CPU perceptage (%)"

plot "average.dat" using 1:6 with impulses notitle linewidth 10

